package com.itkongxiaoyi.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultBatch {

        private int code;
        private String msg;
        private Object data;

        public static ResultBatch success(String msg, Object data) {
            ResultBatch resultBatch = new ResultBatch();
            resultBatch.setCode(200);
            resultBatch.setMsg(msg);
            resultBatch.setData(data);
            return resultBatch;
        }
}
